package com.yq.light.blog.code.service;

import com.yq.light.commons.code.entity.Bolog;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public interface BlogService {
    /**
     * select博客列表
     * @param ownerAccount
     * @return
     */
    public List<Bolog> blogList(@Param("ownerAccount") String ownerAccount);

    /**
     * 新建博客
     * @param bolog
     * @return
     */
    public int newBlog(Bolog bolog);
}
